﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="admin_agencylist.aspx.cs" Inherits="Lawyer.Web.Admin.admin_agencylist" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContent" runat="server">
    <div class="main-content">
        <header>
                            <ul class="action-buttons clearfix">
                               <li><a href="admin_agencyadd.aspx" class="large button " >New Agency</a></li>
                            </ul>
                            <h2>
                                Agency
                            </h2>
                        </header>
        <section class="container_6 clearfix">
                            <div class="grid_6">

                                
                                <asp:GridView ID="gridView" CssClass="display" runat="server" AllowPaging="True" Width="100%" CellPadding="3"  OnPageIndexChanging ="gridView_PageIndexChanging"
                    BorderWidth="1px" DataKeyNames="" OnRowDataBound="gridView_RowDataBound"
                    AutoGenerateColumns="false" PageSize="10"  RowStyle-HorizontalAlign="Center" OnRowCreated="gridView_OnRowCreated">
                    <Columns>
                    
                            
		<asp:BoundField DataField="AgencyID" HeaderText="PostID" ReadOnly="false" Visible="false"  /> 
		<asp:HyperLinkField HeaderText="Name" DataNavigateUrlFields="AgencyID" DataNavigateUrlFormatString="admin_agencydetail.aspx?id={0}" ItemStyle-CssClass="zoombox"
                                DataTextField="Name"  /> 
		<asp:BoundField DataField="AgencyRate" HeaderText="AgencyRate" DataFormatString="{0:N2}%"   /> 
		<asp:BoundField DataField="Email" HeaderText="Email"   />		
		<asp:BoundField DataField="Telphone" HeaderText="Telphone"   /> 
		<asp:BoundField DataField="City" HeaderText="City"   /> 
                            
                            <asp:HyperLinkField HeaderText="Update"  ItemStyle-CssClass="zoombox"   DataNavigateUrlFields="AgencyID" DataNavigateUrlFormatString="admin_agencyupdate.aspx?id={0}"
                                Text="Update"  />

                         <%-- <asp:HyperLinkField HeaderText="Delete" DataNavigateUrlFields="AgencyID" DataNavigateUrlFormatString="#"
                                Text="Delete"  />--%>
                        </Columns>
                </asp:GridView>
                            </div>
                            </section>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="SideBar" runat="server">
    <nav>
    <a class="chevron" href="#">&raquo;</a>
    <ul>
        <li><a href="admin_agencyadd.aspx">New Agency</a></li>
        <li class="current"><a href="admin_agencylist.aspx">All Agency</a></li>

    </ul>
</nav>
</asp:Content>
